﻿<%@ Page Title="" Language="C#" MasterPageFile="~/UserView.master" AutoEventWireup="true" CodeBehind="Payment.aspx.cs" Inherits="BestBuy.UserViews.Payment" %>
<%@ Register TagPrefix="uc" TagName="MessagePanel" Src="~/UserControls/MessagePanel.ascx" %>

<asp:Content ID="Content1" ContentPlaceHolderID="HeadContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <uc:MessagePanel ID="MessagePanel" runat="server" />
    <h1> Payment </h1>
    <br />
    <div>
        <asp:GridView id="gvPayment" runat="server" AutoGenerateColumns="False"
                    Width = "100%" OnRowDataBound="gvPayment_RowDataBound">
                    <Columns>
                        <asp:TemplateField HeaderText="Title">
                            <ItemTemplate>
                                <asp:HyperLink ID="AuctionLink" runat="server"></asp:HyperLink>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:BoundField DataField="Price" HeaderText="Price" />
                        <asp:TemplateField HeaderText = "Price">
                            <ItemTemplate>
                                <asp:Label ID="lbPrice" runat="server"></asp:Label>
                            </ItemTemplate>
                        </asp:TemplateField>
                        <asp:TemplateField>
                            <ItemTemplate>
                                <asp:Button CssClass="btn" Text="Paymet" id="btnPaymet" runat="server" OnClick="btnPaymet_Click"
                                  OnClientClick="javascript:ShowConfirm('Are you sure?', this); return false;" ObjectId='<%# Eval("AuctionID") %>' />
                            </ItemTemplate>
                        </asp:TemplateField>
                    </Columns>
        </asp:GridView>
    </div>
</asp:Content>
